package com.memory;

import com.memory.dao.impl.UserDaoImpl;
import com.memory.pojo.User;

import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;

/**
 * ClassName: ${NAME}
 * Package: org.example
 * Description:
 *
 * @Author Memory
 * @Create 2024/8/14 11:17
 * @Version 1.0
 */
public class Main {
    public static void main(String[] args) throws SQLException {
        System.out.println("Hello world!");

        UserDaoImpl userDao = new UserDaoImpl();
//        List<User> userList = userDao.selectAll();
//
//        System.out.println(userList);
        User user = new User();
        user.setSno(10086);
        user.setSname("新的名字");
        user.setSsex("人妖");
        user.setSage(999);
        user.setSdept("舞蹈");

        userDao.insert(user);
//        ArrayList<User> userArrayList = userDao.selectById(user);
//        System.out.println(userArrayList);
    }
}